/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-03-25
*/
package com.rzico.basics.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.rzico.annotation.IgnoreSwaggerParameter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <pre>
 *   我的卡券数据库对象
 * </pre>
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_coupon_code")
public class CouponCode{
    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "创建日期" )
    protected java.util.Date createDate;

    @ApiModelProperty(value = "修改日期" )
    protected java.util.Date modifyDate;

    @ApiModelProperty(value = "号码" )
    protected String code;

    @ApiModelProperty(value = "是否启用" )
    protected Boolean isUsed;

    @ApiModelProperty(value = "是否删除" )
    protected Boolean deleted;

    @ApiModelProperty(value = "最后使用日期" )
    protected java.util.Date usedDate;

    @ApiModelProperty(value = "优惠券" )
    protected Long couponId;

    @ApiModelProperty(value = "归属会员" )
    protected Long memberId;

    @ApiModelProperty(value = "可用数量" )
    protected Long stock;

    @ApiModelProperty(value = "累计张数" )
    protected Long balance;

    @ApiModelProperty(value = "开始时间" )
    protected java.util.Date startDate;

    @ApiModelProperty(value = "有效期" )
    protected java.util.Date vaildDate;

    @ApiModelProperty(value = "" )
    protected Long orders;

    @ApiModelProperty(value = "锁定到期时间" )
    protected java.util.Date lockExpire;

    @ApiModelProperty(value = "归属企业" )
    protected Long enterpriseId;

    /**
     * 当前对象的量表信息
     */
    @JsonIgnore
    @IgnoreSwaggerParameter
    protected Coupon coupon;

}
